﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZJF.CSharpAdvance
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("++++++++++++泛型类测试++++++++++++++++++");
            GenericTest<string> generic = new GenericTest<string>("string");
            generic.Show();
            GenericTest<int> generic1 = new GenericTest<int> ( 111 );
            generic1.Show();
            // 泛型类可以通用的
            Console.WriteLine("+++++++++++泛型类测试结束+++++++++++++++++");

            Console.WriteLine("++++++++++++泛型方法测试+++++++++++++++++");
            generic.GenericMethod<int>(1);
            generic.GenericMethod<string>("123");

            Console.WriteLine("+++++++++++泛型方法测试结束+++++++++++++++++");
            Console.Read();
        }

        
    }
}
